Use minimum/natural size semantics
authorJohn Lindgren <john.lindgren@aol.com>
Tue, 18 Dec 2012 07:06:12 +0000 (02:06 -0500)
committerBenjamin Otte <otte@redhat.com>
Tue, 15 Jan 2013 13:41:20 +0000 (14:41 +0100)
commit6d53c2339f79baa0b295ecc614f41f9daab2e132
treeae594a275b5a440412c39512176b2fc7cec80861
parent9b6661a0bfecf48eb5bbfbc853cd29d5daae1012
Use minimum/natural size semantics

Rewrites gtk_tree_view_column_request_width() and
gtk_tree_view_size_allocate_columns() to respect the minimum and natural
sizes that are already being returned by
gtk_cell_area_context_get_preferred_width().

The convoluted logic explained (not!) by this comment has been removed:
“Only update the expand value if the width of the widget has changed, or
the number of expand columns has changed, or if there are no expand
columns, or if we didn't have an size-allocation yet after the last
validated node.”  This logic seems to have been a workaround for the
“jumping” behavior fixed in 16195ad and is no longer necessary.

https://bugzilla.gnome.org/show_bug.cgi?id=691751
gtk/gtktreeprivate.h
gtk/gtktreeview.c
gtk/gtktreeviewcolumn.c